import { createApp } from "vue";
import App from "./App.vue";
import router from "@/router";
import { createPinia } from "pinia";
import { changeTheme } from "./utils/theme";
import VuePdfEmbed from "vue-pdf-embed";

import "vue-pdf-embed/dist/styles/annotationLayer.css";
import "vue-pdf-embed/dist/styles/textLayer.css";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import zhCn from "element-plus/dist/locale/zh-cn.mjs";
import "@/assets/styles/index.scss";
import "virtual:svg-icons-register";
import elementIcons from "./components/SvgIcon/svgicon";

import components from "@/components";
import plugins from "./plugins";

changeTheme();
const app = createApp(App);
app.component("VuePdfEmbed", VuePdfEmbed);
app
  .use(router)
  .use(createPinia())
  .use(ElementPlus, { locale: zhCn })
  .use(plugins)
  .use(elementIcons)
  .use(components)
  .mount("#salesContract-app");
